package com.hyk.learning.test.client;

import com.hyk.learning.annotation.RpcScan;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @className: NettyClientMain
 * @author: hyk199710
 * @description: TODO
 * @date: 2024/5/25 17:31
 */
@RpcScan(basePackage = {"com.hyk.learning"})
public class NettyClientMain {

    public static void main(String[] args) throws InterruptedException {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(NettyClientMain.class);
        HelloController helloController = (HelloController) applicationContext.getBean("helloController");
        helloController.test();
    }
}
